import { RouteObject } from "@/routers/interface";

export const setPermCodeList = (data: string[]) => ({
	type: "set_perm_code_list",
	payload: data
});

export const setIsDynamicAddedRoute = (data: boolean) => ({
	type: "set_is_dynamic_added_route",
	payload: data
});

export const setLastBuildMenuTime = () => ({
	type: "set_last_build_menu_time",
	_: new Date().getTime()
});

export const setBackMenuList = (data: RouteObject[]) => ({
	type: "set_back_menu_list",
	payload: data
});

export const setFrontMenuList = (data: RouteObject[]) => ({
	type: "set_front_menu_list",
	payload: data
});
